package com.ylp.lianxi.myAdapter;

/**
 * 笔记本电脑
 * 我用三相插座；
 * @author Administrator
 *
 */
public class NoteBook {

	private ThreePlugIf plug;
	
	public NoteBook(ThreePlugIf plug) {
		this.plug = plug;
	}
	
	//使用插座充电
	public void charge() {
		System.out.println("我是笔记本，要使用三相插头。");
		plug.powerWithThree();
	}
}
